export default {
  data() {
    return {
      paginationMixin: {
        pageSizeOptions: ['10', '20', '50', '100'],
        showSizeChanger: true,
        // showQuickJumper: true,
        current: 1,
        pageSize: 10,
        total: 0,
      },
      scrollMixin: { x: 1200, y: 380 },
      rowSelectionMixin: {
        selectedRowKeys: [],
        onChange(selectedRowKeys, selectedRows) {
          this.selectedRowKeys = selectedRowKeys;
          this.selectedRows = selectedRows;
          console.log('selectedRowKeys: ', selectedRowKeys);
          console.log(selectedRows);
        },
      },
      loading: false,
      dataSource: [],
    };
  },
  methods: {
    customHeaderRowMinxin(record) {
      record.forEach(item => {
        if (item.required) {
          item.className = 'poros-table-header-required';
        }
      });
    },
  },
};
